package lab02.test18;

public class Test18 {
    public static void main(String[] args) {
        String name = "My name is Network crazy";
        System.out.println("字符串长度："+name.length());
        System.out.println("字符串第一个字符："+name.charAt(0));
        System.out.println("字符串最后一个字符："+name.charAt(name.length()-1));
        System.out.println("字符串第一个词："+name.split(" ")[0]);
        System.out.println("字符串craey位置："+name.indexOf("crazy"));
    }
}
